home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 001 / robin10.arc / ROBIN.DOC < prev    next >
Encoding:
Text File  |  1987-05-06  |  17.1 KB  |  427 lines

  1.  
  2.                          "Round Robin Dialer"
  3.                                  by
  4.                            Samuel Smulowitz
  5.                           CENTURY ASSOCIATES
  6.                           141-04 71st Avenue
  7.                           Flushing, N.Y. 11367
  8.  
  9. INTRODUCTION.
  10. -------------
  11.  
  12. Round Robin is a PROCOMM Command File routine which allows users to dial and
  13. redial a series of up to eight numbers until a connection is made.  This
  14. routine can be used for dialing a bulletin board or other on-line system
  15. having multiple numbers, or can be used to dial a list of several bulletin
  16. boards.  The Round Robin dialer must be used with PROCOMM 2.4 or greater.
  17.  
  18. There are two main ways of using this Round Robin system.
  19.  
  20.   1 - Enter a one-time list of numbers to be dialed using the
  21.       ROBIN.CMD command routine (use Alt-F5 and execute ROBIN.CMD)
  22.  
  23.   2 - The user prepares a command file assigning up to eight telephone
  24.       numbers, and optionally, corresponding names.  This command file
  25.       is then executed (using Alt-F5) to assign the telephone numbers
  26.       and names, then this routine executes ROBIN.CMD to start the
  27.       dialing sequence.
  28.  
  29. Originally, I wrote this routine as a single command file with all
  30. the several components coded as sub routines.  However, no matter how the
  31. routines were coded, I couldn't get the routine to work fast enough.
  32. There was simply too much coding in it.  So I redesigned the routine
  33. in a more modular fashion (i.e. several command files, each containing
  34. a single routine) which became easier to maintain and produced much faster
  35. thru put.  As an added advantage, customization of these routines were
  36. also made simpler.
  37.  
  38. The Round Robin system is comprised of a series of command files.  Most of
  39. these files begin with "ROBIN-" and have an extension of "SUB" (so as not
  40. to clutter up the command file list).  These include:
  41.  
  42.   ROBIN.CMD    - This is the driver module which controls the processing
  43.                  (execution) of all the Round Robin subroutines.
  44.  
  45.   ROBIN-H1.SUB - Subroutine to display a screen format for the
  46.                  Round Robin processing screen.  This is executed
  47.                  only when a user prepared command file calls ROBIN.CMD.
  48.  
  49.  
  50.   ROBIN-H2.SUB - Subroutine to display a screen format for the
  51.                  Round Robin processing screen.  This is executed
  52.                  only when a user executes ROBIN.CMD.
  53.  
  54.   ROBIN-DN.SUB - This routine displays the list of telephone numbers
  55.                  and optional names from the user prepared command file.
  56.  
  57.   ROBIN-GN.SUB - This routine allows user to manually enter telephone
  58.                  numbers for a one time execution of the Round Robin
  59.                  routines.
  60.  
  61.  
  62.  
  63.  
  64.  
  65.   ROBIN-SV.SUB - This routine allows the user to automatically set
  66.                  standard BBS values for processing. Standard values
  67.                  are initialized as:
  68.                            EMULATE      ANSI
  69.                            TRANSLATE    OFF
  70.                            SET BAUDRATE 1200
  71.                            SET DATABITS 8
  72.                            SET STOPBITS 1
  73.                            SET PARITY   NONE
  74.                            SET RDELAY   25
  75.  
  76.   ROBIN-SK.SUB - This routine allows the user to remove numbers from
  77.                  the dialing list prior to executing the dialer.
  78.  
  79.   ROBIN-MC.SUB - This routine allows a user to select the type of
  80.                  modem command set to be used for dialing.  The
  81.                  user enters either "ATDT" for tone dialing or
  82.                  "ATDP" for pulse dialing.
  83.  
  84.   ROBIN-SF.SUB - This routine is used by the user to start round robin
  85.                  dialing from anywhere within the dialing list.
  86.  
  87.   ROBIN-DR.SUB - This routine executes the round robin dialing list.
  88.                  It starts with the first number selected (1 thru 8),
  89.                  and continues dialing numbers in the list until a
  90.                  connection has been made.  If numbers were removed
  91.                  from the dialing list, these are skipped.  Once the
  92.                  list is exhausted,  the dialing is begun again from
  93.                  the beginning of the list.
  94.  
  95.   ROBIN-EX.SUB - After the telephone connection has been made, the
  96.                  screen is cleared and a connect message is displayed.
  97.                  The user can customize this command file to perform
  98.                  special functions or execute other command files.
  99.  
  100.  
  101. In additon to the command file subroutines, there are two macro files
  102. used in conjuction with the round robin dialer.  These are:
  103.  
  104.                  ROBIN-DT.KEY  and  ROBIN-DP.KEY
  105.  
  106. These macros contain the modem commands (ATDT or ATDP) needed for dialing.
  107. In addition, the user can setup local access and charge card numbers in the
  108. macro which will be transmitted along with the number.  More about
  109. transmitting charge numbers later.
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128. GETTING STARTED.
  129. ----------------
  130. 1.  The Round-Robin command files on the release disc can run without
  131. customization.  Why not try testing the system "as is" before customizing
  132. it to your specific requirements.
  133.  
  134. The Round-Robin dialing system can run in one of two modes:
  135.  
  136.    a.  User enters and executes a one-time list of numbers to dial.
  137.  
  138.    b.  User executes a user prepared command file  which assigns a list
  139.        of numbers to dial. This user command file then executes the
  140.        Round-Robin command file.
  141.  
  142. The following paragraphs briefly describe using these two methods.
  143.  
  144.  
  145.                     Using the one-time list.
  146.                   ----------------------------
  147.  
  148. Execute ROBIN.CMD from PROCOMM using Alt-F5. When the dialing screen
  149. appears, enter each number to be dialed.  You may enter a maximum of
  150. eight numbers.  If you don't have eight numbers to dial, enter "END"
  151. on the line following the last telephone number.
  152.  
  153.  
  154.               Using a prepared list in a command file.
  155.             --------------------------------------------
  156.  
  157. Execute TESTLIST.CMD from PROCOMM using ALT-F5.  This command file
  158. assigns the telephone numbers and their associated names.  ROBIN.CMD
  159. is then called by TESTLIST to automatically display these names and
  160. numbers for dialing.
  161.  
  162.  
  163. 2.  Once the numbers have all been entered or displayed, a few additional
  164. messages requiring your response will appear.  These are:
  165.  
  166.    a: "Do you wish standard BBS settings (Y/N)? [  ]"
  167.       If you answer "Y", Round-Robin will execute "ROBIN-SV.SUB"
  168.       to set some standard communication values. These values are
  169.       initialized on the release disc as:
  170.                            EMULATE      ANSI
  171.                            TRANSLATE    OFF
  172.                            SET BAUDRATE 1200
  173.                            SET DATABITS 8
  174.                            SET STOPBITS 1
  175.                            SET PARITY   NONE
  176.                            SET RDELAY   25
  177.       Check your PROCOMM manual for the meaning of these settings.
  178.  
  179.    b: "Are there any numbers to SKIP? (Y/N) [  ]"
  180.       Round-Robin gives you a chance to remove telephone numbers
  181.       from the list prior to dialing the list.
  182.  
  183.    c: "MODEM DIAL COMMAND ('ATDT' OR 'ATDP') [    ]"
  184.       If you have a tone phone, enter 'ATDT'.
  185.       If you have a pulse phone, enter 'ATDP'.
  186.  
  187.    d: "Enter NUMBER to start dialing from (1 thru 8) [ ]"
  188.       Allows you to start the dialing sequence from anywhere
  189.       within the list.
  190.  
  191. 3.  Once these questions have been answered, Round-Robin will begin
  192. dialing telephone numbers from the list until a connection has
  193. been made.  When all numbers in the list are exhausted, Round-Robin
  194. begins the list from the begining of the list starting with the first
  195. number which has not been skipped.  Each number is displayed near the
  196. bottom of the screen as it selected for dialing.  To abort the dialing
  197. or Round-Robin, simply hit your "ESC" key.
  198.  
  199. Once a connection has been made, Round-Robin will execute the command
  200. file "ROBIN-EX.SUB".  This command file redisplays the number successfully
  201. connected with and turns on logging (default logfile name is ROBIN=LOG).
  202. Round-Robin has now completed and control is returned to you.
  203.  
  204.  
  205.  
  206.  
  207. CUSTOMIZING ROUND-ROBIN.
  208. ------------------------
  209.  
  210. Although Round-Robin can be used "as-is", the command files comprising the
  211. Round-Robin routines have been designed to make them simple to customize.
  212. Let's face it, variety is the 'spice' of life.  Here are a few ideas how
  213. customizing these routines may help you.
  214.  
  215.    a.  Most people use only one type of telephone, 'pulse' or 'tone'. If
  216.        this is your situation, you may want to remove the execution of
  217.        ROUND-MC.SUB from your ROBIN.CMD file and replace it with the
  218.        'MLOAD' command for either ROBIN-DT.KEY (tone phone) or ROBIN-DP.KEY
  219.        (pulse phone).  This must be changed twice in the ROBIN.CMD file.
  220.        Notations for changing these lines are already in ROBIN.CMD.
  221.  
  222.        For example, ROBIN.CMD contains the following code:
  223.  
  224.   CASE "SKIP1"
  225. ;   MLOAD "ROBIN-DT.KEY"
  226.     ASSIGN S0 "MODEM-COMMAND1"  ;IF LOADING ROBIN-D?.KEY, REMOVE THIS LINE.
  227.     EXECUTE "ROBIN-MC.SUB"      ;"    "         "     "     "      "    "
  228.   ENDCASE                       ;"    "         "     "     "      "    "
  229.   CASE "MODEM-COMMAND1"         ;"    "         "     "     "      "    "
  230.     EXECUTE "ROBIN-SF.SUB"
  231.   ENDCASE
  232.  
  233.        If you used only a pulse phone, change the file to read this way.
  234.  
  235.   CASE "SKIP1"
  236.     MLOAD "ROBIN-DP.KEY"
  237. ;   ASSIGN S0 "MODEM-COMMAND1"  ;IF LOADING ROBIN-D?.KEY, REMOVE THIS LINE.
  238. ;   EXECUTE "ROBIN-MC.SUB"      ;"    "         "     "     "      "    "
  239. ; ENDCASE                       ;"    "         "     "     "      "    "
  240. ; CASE "MODEM-COMMAND1"         ;"    "         "     "     "      "    "
  241.     EXECUTE "ROBIN-SF.SUB"
  242.   ENDCASE
  243.  
  244.        This keeps the original text of the file intact, but changes the
  245.        extraneous lines to non-executable comment lines (i.e. characters
  246.        following a ';' are considered comments).  If you still maintain
  247.        a copy of the original ROBIN.CMD somewhere, you may simply want
  248.        to delete the extraneous lines.
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.    b:  ROUND-SV.SUB  contains the default communication BBS settings.
  256.        Please feel free to change these to your own default values.  I
  257.        have already described these values a couple a times before,
  258.        so I won't bother doing it again here.
  259.  
  260.    c:  Users wishing to use their credit card numbers, please refer to
  261.        the following section on "setting up your own list" for specific
  262.        set-up instructions.
  263.  
  264.    d:  Round-Robin assigns all registers and even performs an 'MLOAD' or
  265.        two during processing.  Therefore, you should not use these commands
  266.        in your own 'list' command file.  The best way to add your own
  267.        touches for customizing is in the ROBIN-EX.sub command file.  This
  268.        routine is executed last and therefore has very little impact
  269.        on what you will be doing once the "ROBIN" routine has completed.
  270.  
  271.        Modify this file however you like prior to getting control
  272.        back from the command file routines.  I sometimes have passwords
  273.        I want to enter for different BBS's I'm dialing in.  I therefore
  274.        modify the ROBIN-EX.CMD to check for a telephone number so that
  275.        I may execute commands to set baud rates and enter passwords or
  276.        call another subroutine to do this.       For example:
  277.  
  278. USER-ROUTINES:
  279.   SET RDELAY 30                    ; SET TO 0 IN "ROBIN-SV.SUB"
  280.   LOG OPEN "ROBIN.LOG"             ; OPEN SPECIAL LOG.
  281.   SWITCH S0                        ; S0 = TELEPHONE NUMBER DIALED.
  282.     CASE "1-212-555-1257"
  283.       WAITFOR "I.D." 20
  284.       TRANSMIT "2373"
  285.       WAITFOR "CODE" 20
  286.       TRANSMIT "123KR!"
  287.       WAITFOR "Main Menu Comm"
  288.       TRANSMIT "EB"
  289.       MLOAD "SPL.KEY"
  290.       GOTO EXIT
  291.     ENDCASE
  292.     CASE "(0)203-555-7944"
  293.       EXECUTE "INIT-ABC.CMD"      ; COMMAND FILE TO SET BAUD RATE & PASSWORDS
  294.     ENDCASE
  295.   ENDSWITCH
  296.  
  297.  
  298.  
  299.  
  300. CREATING YOUR OWN PREPARED LIST OF NUMBERS.
  301. -------------------------------------------
  302.  
  303. The thing I like best about "Round-Robin" is the ability to execute a
  304. prepared list of numbers.  I maintain several lists of my most frequently
  305. dialed BBS's and clients.  Using "Round-Robin" to dial them makes dialing
  306. a cinch.  The best and easiest way to create your own prepared list of
  307. numbers is to modify the "TESTLIST.CMD" sample file.  Copy TESTLIST.CMD
  308. into a your own command file:
  309.  
  310.              COPY  TESTLIST.CMD  MYOWN.CMD /V
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317. Now use your editor to modify MYOWN.CMD.  There are three and only three
  318. things to be modified in your command file.  These are:
  319.  
  320. 1 - Change the "ASSIGN S9" from TESTFILE.CMD to the name of the new command
  321.     file.  In this case, change TESTLIST.CMD to MYOWN.CMD.
  322.  
  323. 2 - Change the first set of "ASSIGN S1" to "ASSIGN S8" lines to the list
  324.     of numbers you wish to set-up to be dialed.  If you have less than 8
  325.     numbers to dial,  set the ASSIGN statement following the last telephone
  326.     number to "END" (In TESTFILE.CMD I assigned "END" to S6).
  327.     There is no need to ASSIGN any registers  after the "END" assignment.
  328.     I assgned S7 and S8 in TESTFILE.CMD to make it easier when creating
  329.     other command files from it.
  330.  
  331. 3 - Change the second set of "ASSIGN S1" to "ASSIGN S8" lines to the
  332.     names corresponding to the telephone numbers entered above. If there
  333.     are less than 8 numbers in you list, set the ASSIGN statement
  334.     following the last name to "END".
  335.  
  336.  
  337. Telephone numbers should be entered with the area code and prefix, just the
  338. way you would set up a telephone number for dialing in PROCOMM.  The
  339. following examples speak for themselves.
  340.  
  341.           434-6625
  342.           1-555-1212
  343.           1-718-263-4449
  344.           1(203)777-9999
  345.  
  346. Procomm supports telephone local access and charge card numbers.
  347. So does Round-Robin.  To enter a local access number (to be dialed prior
  348. to dialing your listed number) or a charge card number (dialed following
  349. your listed number) you must modify the 'ROBIN-DT.KEY' and 'ROBIN-DP.KEY'
  350. files.  To do this you must be in PROCOMM.
  351.  
  352. To add a charge card number:
  353.  
  354. 1 - Enter "ALT M"         to call up KEYBOARD MACROS screen.
  355. 2 - Enter "L"             to load a macro file.
  356. 3 - Enter "ROBIN-DT.KEY"  to load first ROBIN macro file.
  357. 4 - Enter "R"             to revise.
  358. 5 - Enter "2"             to revise second macro statement.
  359. 6 - Enter charge card number preceded by pause characters (just like PROCOMM).
  360. 7 - Enter "Y"             to 'is this OK?' message.
  361. 8 - Enter "S"             to save macro file.
  362. 9 - Enter "ROBIN-DT.KEY"  to save first ROBIN macro file.
  363. 10- Enter "ESC" key       to exit KEYBOARD MACROS screen.
  364.  
  365. Repeat the above procedure for 'ROBIN-DP.KEY' file.
  366.  
  367. To add a local access number:
  368.  
  369. 1 - Enter "ALT M"         to call up KEYBOARD MACROS screen.
  370. 2 - Enter "L"             to load a macro file.
  371. 3 - Enter "ROBIN-DT.KEY"  to load first ROBIN macro file.
  372. 4 - Enter "R"             to revise.
  373. 5 - Enter "3"             to revise third macro statement.
  374. 6 - Enter local access number followed by pause characters (just like PROCOMM).
  375. 7 - Enter "Y"             to 'is this OK?' message.
  376. 8 - Enter "S"             to save macro file.
  377. 9 - Enter "ROBIN-DT.KEY"  to save first ROBIN macro file.
  378. 10- Enter "ESC" key       to exit KEYBOARD MACROS screen.
  379.  
  380. Repeat the above procedure for 'ROBIN-DP.KEY' file.
  381.  
  382. Once this has been done, you can enter your telephone number in the list
  383. preceded by a zero in parenthesis (to dial your charge card info).
  384. To dial a local access number, enter a plus sign (+) anywhere within
  385. the number.  For example:
  386.  
  387.       (0)-666-5555                   *  Dial with charge card number.
  388.       (0)-(203)555-1212              *  Dial with charge card number.
  389.       +-555-1212                     *  Dial local access number first.
  390.       123-4567+                      *  Dial local access number first.
  391.       (0)205-555-1212+               *  Dial local access number first,
  392.                                         then telephone number and charge card.
  393.  
  394.  
  395.  
  396. These local access and credit card numbers add time to dialing. Adjust your
  397. RDELAY (redial timeout delay) default value up to accomodate for this.
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406. This completes the Round Robin documentation.  Please feel free to contact me
  407. with your comments and suggestions for improvements.  If you like these
  408. routines pass them along to your friends. With a few exceptions, this
  409. software can be freely copied and distributed.
  410.  
  411. First, this product must be copied and distributed as a complete package. This
  412. includes the command files, the macro files and, of course, the documentation.
  413.  
  414. Second, ROUND ROBIN must not be distributed if modified or altered in any way.
  415.  
  416. Third, no fee is to be charged for copying or distributing ROUND ROBIN. This
  417. software is meant to remain in the public domain and free to anyone wishing
  418. it.
  419.  
  420. In no event will Century Associates or Sam Smulowitz be liable for any damages,
  421. including any lost profits, lost savings or other incidental or consequential
  422. damages arising out of your use or inability to use this software, or for any
  423. claim by any other party.
  424.  
  425. Good Luck,
  426.  
  427. Sam Smulowitz